package com.dit.thucydidestest.steps;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;

import net.thucydides.core.annotations.findby.FindBy;
import net.thucydides.core.pages.PageObject;

public class HomePage extends PageObject {
	 private WebElement searchInput;

	    @FindBy(name="go")
	    private WebElement searchButton;

	    public HomePage(WebDriver driver) {
	        super(driver);
	    }

	    public void enter_keywords(String keyword) {
	        searchInput.sendKeys(keyword);
	        searchButton.click();
	    }

}
